package org.six11.ss.client;

import java.util.Comparator;

/**
 * This represents a theme. Players can vote for (and remove their own votes for) themes.
 * 
 * @author Gabe Johnson <johnsogg@cmu.edu>
 */
public class ThemeChoice {

  private String name;
  private String id;
  private String votes;
  private boolean myChoice;

  public ThemeChoice() {

  }
  public void setId(String id) {
    this.id = id;
  }
  
  public String getId() {
    return id;
  }
  
  public void setVotes(String num) {
    this.votes = num;
  }

  public void setName(String name) {
    this.name = name;
  }
  
  public String getName() {
    return name;
  }

  public String getVotes() {
    return votes;
  }

  public void setMyChoice(boolean myChoice) {
    this.myChoice = myChoice;
  }

  public boolean isMyChoice() {
    return myChoice;
  }
  /**
   * @return
   */
  public static Comparator<ThemeChoice> comparator() {
    return new Comparator<ThemeChoice>() {

      public int compare(ThemeChoice o1, ThemeChoice o2) {
        return o1.getName().compareTo(o2.getName());
      }
      
    };
  }
  
}
